package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.dto.SolProductListDetail;
import com.homedo.odin.solution.model.entity.SolProductList;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 方案产品清单 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface SolProductListMapper extends BaseDao<SolProductList> {

    List<SolProductListDetail> findSolList(@Param("solName") String solName, @Param("status") Integer status);

    Integer updateListStatus(@Param("userId") Long userId, @Param("status") Integer status,
            @Param("listId") Integer listId, @Param("userName") String userName);

    Integer updateListStatusBySolId(@Param("userId") Long userId, @Param("solutionId") Long solutionId,
            @Param("status") int status, @Param("userName") String userName);

    SolProductList getProductListById(@Param("id") int id);
}